import Cookies from 'js-cookie'
const TokenKey = 'supportsystem_token'
const refreshToken = 'supportsystem_refsToken'
const allianceId = 'supportsystem_alliance_Id'

export function getToken() {
  return localStorage.getItem(TokenKey)
}
export function setToken(token) {
  return localStorage.setItem(TokenKey, token)
}
export function removeToken() {
  return localStorage.removeItem(TokenKey)
}

export function getrefsToken() {
  return localStorage.getItem(refreshToken)
}
export function setrefsToken(token) {
  return localStorage.setItem(refreshToken, token)
}
export function removerefsToken() {
  return localStorage.removeItem(refreshToken)
}

export function getAllianceId() {
  return localStorage.getItem(allianceId)
}
export function setAllianceId(id) {
  return localStorage.setItem(allianceId, id)
}
export function removeAllianceId() {
  return localStorage.removeItem(allianceId)
}
